var __Flux_CurrentActiveCell = null;
var __Flux_CurrentActiveContainer = null;

function __Flux_SetActiveTab( tabcellid, hiddenfieldid, containerid )
{
	if( __Flux_CurrentActiveCell != null )
		__Flux_CurrentActiveCell.className = "StyleTabInactive";
	if( __Flux_CurrentActiveContainer != null )
		__Flux_CurrentActiveContainer.style.display = "none";

	var hobj = document.getElementById(hiddenfieldid);
	if( hobj == null )
	{
		// Non IE - can't get input elements by Id
		var formObj = document.forms[0];
		if( formObj )
			hobj = eval( "formObj." + hiddenfieldid );
	}

	var cellobj = document.getElementById( tabcellid );
	var containerobj = document.getElementById( containerid );
	
	if( hobj != null )
		hobj.value = containerid;
	if( cellobj != null )
		cellobj.className = "StyleTabActive";
	if( containerobj != null )
		containerobj.style.display = "inline";
		
	__Flux_CurrentActiveCell = cellobj;
	__Flux_CurrentActiveContainer = containerobj;
}
